package com.hanhai.zrb.model.user;

import java.util.Date;

import com.hanhai.zrb.model.user.enums.UserFollowRelationEnum;

public class UserFollow {

	private Long id;
	private Long fromUserId;
	private Long toUserId;
	private Date createTime;
	private Date updateTime;
	private Integer status;
	
	private User fromUser;
	private User toUser;

	//默认只是单向关注
	private Integer relation=UserFollowRelationEnum.NONE.getCode();
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getFromUserId() {
		return fromUserId;
	}
	public void setFromUserId(Long fromUserId) {
		this.fromUserId = fromUserId;
	}
	public Long getToUserId() {
		return toUserId;
	}
	public void setToUserId(Long toUserId) {
		this.toUserId = toUserId;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public User getToUser() {
		return toUser;
	}
	public void setToUser(User toUser) {
		this.toUser = toUser;
	}
	public Integer getRelation() {
		return relation;
	}
	public void setRelation(Integer relation) {
		this.relation = relation;
	}
	
	public User getFromUser() {
		return fromUser;
	}
	public void setFromUser(User fromUser) {
		this.fromUser = fromUser;
	}
	@Override
	public String toString() {
		return "UserFollow [id=" + id + ", fromUserId=" + fromUserId
				+ ", toUserId=" + toUserId + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + ", status=" + status
				+ ", toUser=" + toUser + ", relation=" + relation + "]";
	}	
	
}
